package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 存储资源信息的对象 pm_resources
 * 
 * @author ruoyi
 * @date 2024-04-21
 */
public class PmResources extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资源唯一标识符 */
    private Long id;

    /** 资源名称 */
    @Excel(name = "资源名称")
    private String resourceName;

    /** 资源类型：1文档、2视频、3音频、4图片、5其他 */
    @Excel(name = "资源类型：1文档、2视频、3音频、4图片、5其他")
    private String resourceType;

    /** 上传日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadDate;

    /** 上传者姓名或用户名 */
    @Excel(name = "上传者姓名或用户名")
    private String uploader;

    /** 文件存储路径 */
    @Excel(name = "文件存储路径")
    private String filePath;

    /** 资源描述 */
    @Excel(name = "资源描述")
    private String description;

    /** 资源标签 */
    @Excel(name = "资源标签")
    private String tags;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setResourceName(String resourceName) 
    {
        this.resourceName = resourceName;
    }

    public String getResourceName() 
    {
        return resourceName;
    }
    public void setResourceType(String resourceType) 
    {
        this.resourceType = resourceType;
    }

    public String getResourceType() 
    {
        return resourceType;
    }
    public void setUploadDate(Date uploadDate) 
    {
        this.uploadDate = uploadDate;
    }

    public Date getUploadDate() 
    {
        return uploadDate;
    }
    public void setUploader(String uploader) 
    {
        this.uploader = uploader;
    }

    public String getUploader() 
    {
        return uploader;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("resourceName", getResourceName())
            .append("resourceType", getResourceType())
            .append("uploadDate", getUploadDate())
            .append("uploader", getUploader())
            .append("filePath", getFilePath())
            .append("description", getDescription())
            .append("tags", getTags())
            .append("status", getStatus())
            .toString();
    }
}
